package seven.test_7_22;

import java.util.Scanner;

public class TestMain1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.nextLine();
        String str2 = scanner.nextLine();
        int[] arr = new int[26];
        for (int i = 0; i < str1.length(); i++) {
            char c = str1.charAt(i);
            arr[c - 'A']++;
        }
        for (int i = 0; i < str2.length(); i++) {
            char c = str2.charAt(i);
            arr[c - 'A']--;
            if(arr[c - 'A'] < 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}
